package com.itheima.service.system;

import com.github.pagehelper.PageInfo;
import com.itheima.domain.system.User;

import java.util.List;
/**
 * 平台系统管理  -> 部门管理(业务层)
 */
public interface UserService {
    /*分页*/
    PageInfo<User> queryPage(Integer pageNum, Integer pageSize)throws Exception;

    /*查询所有*/
    List<User> findAll()throws Exception;

    /*查询单个*/
    User findById(String id) throws Exception;

    /*增*/
    void save(User user)throws Exception;
    //修改
    void update(User user)throws Exception;
    //删除
    void deleteById(String... ids)throws Exception;

}
